package com.baike.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author x_FG
 * @since 2021-10-30
 */
@Data
public class TbLesson implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 雪花id
     */
    private Long lessonId;

    /**
     * 课程名称
     */
    private String lessonName;

    /**
     * 课程简介
     */
    private String lessonIntroduce;

    /**
     * 课程图片
     */
    private String lessonImage;

    /**
     * 发布教师
     */
    private Integer lessonTeacherId;

    /**
     * 上传时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date lessonPublishDate;

    /**
     * 0.免费,1.收费
     */
    private Integer lessonFree;

    /**
     * 收费课程价格
     */
    private Double lessonPrice;

    /**
     * 已售量
     */
    private String lessonCount;

    /**
     * 课程目标
     */
    private String lessonGoal;

    /**
     *  标签
     */
    private String labelName;
    /**
     * 课程标签名称
     */

    private String lessonLabelName;


}
